c1b27e7f40d18d0b81f8f669c6b125f0383a6d35,src/main/java/ua/softserveinc/tc/dto/BookingDto.java,BookingDto,getNewBookingDto,#Date[]#,185

Before Change


        bookingDto.setRecurrentId(recurrentId);
        bookingDto.setDateStartTime(dates[0]);
        bookingDto.setDateEndTime(dates[1]);
        bookingDto.setStartTime(DateConstants.DATE_FORMAT_OBJECT.format(dates[0]));
        bookingDto.setEndTime(DateConstants.DATE_FORMAT_OBJECT.format(dates[1]));
        bookingDto.setBookingState(BookingState.BOOKED);
        bookingDto.setSum(0L);

After Change


        bookingDto.setComment(comment);
        bookingDto.setIdChild(idChild);
        bookingDto.setKidId(kidId);
        if (dates[0] != null) {
            bookingDto.setDateStartTime(dates[0]);
            bookingDto.setStartTime(DateConstants.DATE_FORMAT_OBJECT.format(dates[0]));
        }
        if (dates[1] != null) {
            bookingDto.setDateEndTime(dates[1]);